package si2.robo;

import java.util.HashMap;


public class Manager {

	private Integer coalitionCounter = 0;
	private HashMap<Integer, Coalition> coalitionMap;
	
	public Manager() {
		coalitionMap = new HashMap<Integer, Coalition>();
	}
	
	public Integer createCoalition(Coalition coalition) {
		coalitionCounter++;
		coalitionMap.put(coalitionCounter, coalition);
		
		return coalitionCounter;
	}
	
	public Coalition getCoalition(Integer id) {
		return coalitionMap.get(id);		
	}

	public HashMap<Integer, Coalition> getCoalitionMap() {
		return coalitionMap;
	}
}
